package com.hust.chatvedio;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.google.android.material.button.MaterialButton;
import com.hust.chatvedio.utils.Utils;

public class LoginActivity extends AppCompatActivity implements View.OnClickListener {
    private MaterialButton mBtnLogin;
    private MaterialButton mBtnRegister;
    public static String ACTION = "登录";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Utils.setStatusColor(this,false,false,R.color.black);
        setContentView(R.layout.activity_login);
        initView();
    }

    private void initView() {
        mBtnLogin = (MaterialButton) findViewById(R.id.btn_login);
        mBtnRegister = (MaterialButton) findViewById(R.id.btn_register);
        mBtnLogin.setOnClickListener(this);
        mBtnRegister.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_login:
                ACTION = "登录";
                break;
            case R.id.btn_register:
                ACTION = "注册";
                break;
        }
        Intent intent = new Intent(this,MainActivity.class);
        startActivity(intent);
    }
}